#ifndef SOCJETTJ_MAIN_H_
#define SOCJETTJ_MAIN_H_

#include <netinet/in.h>

int create_client_tcp(char* ip, int port);
int create_client_udp(char* ip, int port, struct sockaddr_in * address);
int http_get(char* url, char* method, char* post_data, char* result, int header);
int ftp_get(char* ip, int port, char* username, char* password, char* dirname, char* filename, char* save_path);
int ftp_put(char* ip, int port, char* username, char* password, char* dirname, char* filename);

void send_file(char* path, int df_connect);
int open_bind(int port);
char* ip_search(void);
void change_ip_address(char* ip);
void get_file_name(char filepath[], char name[]);

#endif /* MAIN_H_ */
